package cn.dada.dadarecipes.user.order.mapper;

import cn.dada.dadarecipes.user.order.pojo.dto.QueryOrderParam;
import cn.dada.dadarecipes.user.order.pojo.entity.Order;
import cn.dada.dadarecipes.user.order.pojo.vo.OrderVO;

import java.util.List;

public interface OrderMapper {
    List<OrderVO> query(Long id);
    List<OrderVO> selectOrdersByIdsAndShopId(List<Long> ids, Long shopId);

    void update(Order order);

    void delete(Long id);

    Integer insert(Order order);

    List<OrderVO> queryOrdersByParams(QueryOrderParam queryOrderParam);
}
